package com.dev.demo;

/**
 * @description:
 * @className: ClassLoaderDemo
 * @package: com.dev.demo
 * @author: yangzhi@hsyuntai.com
 * @date: 2019-04-13 15:23
 * @copyright: 版权归 HSYUNTAI 所有
 */
public class ClassLoaderDemo {

    public static void main(String[] args) {
        ClassLoader cl = ClassLoaderDemo.class.getClassLoader();
        while (cl != null) {
            System.out.println(cl.getClass().getName());
            cl = cl.getParent();
        }

        System.out.println("String类加载器：" + String.class.getClassLoader());
    }

}

